var app=angular.module('myApp',['ngRoute','ngAnimate']); 
//修复后台被拒报错
app.config(['$qProvider', function ($qProvider) {
    $qProvider.errorOnUnhandledRejections(false);
}]); 
app.config(['$routeProvider','$locationProvider', function($routeProvider,$locationProvider){
	$locationProvider.hashPrefix('');
    $routeProvider
//=====运行工作台=====//
     .when('/appRunManage',{
    	templateUrl:'/template/workTable/appRunManage.html',
     	controller:"appRunManage"
     })
    //业务端管理
    .when('/paramConfigManage',{
    	templateUrl:'/template/workTable/paramConfigManage/paramConfigManage.html',
    	controller:"paramConfigManage"
    })
    //通道参数配置
    .when('/channelParameter',{
        templateUrl:'/template/workTable/paramConfigManage/channelParameter.html',
         controller:"channelParameter"
    })
    //短信标签管理
    .when('/smsBsManage',{
        templateUrl:'/template/workTable/paramConfigManage/smsBsManage.html',
         controller:"smsBsManage"
    })
    //短信接入分级
    .when('/smsAccessGrade',{
        templateUrl:'/template/workTable/paramConfigManage/smsAccessGrade.html',
         controller:"smsAccessGrade"
    })
    //错误码管理
    .when('/errorCodemManagement',{
        templateUrl:'/template/workTable/paramConfigManage/errorCodemManagement.html',
         controller:"errorCodemManagement"
    })
    //错误码导入
    .when('/errorCodeImport',{
        templateUrl:'/template/workTable/paramConfigManage/errorCodeImport.html',
        controller:"errorCodeImport"
    })
    //错误码导入明细
    .when('/errorCodeImportDetail',{
        templateUrl:'/template/workTable/paramConfigManage/errorCodeImportDetail.html',
        controller:"errorCodeImportDetail"
    })

        //禁发时段管理
        .when('/forbiddentimeManage',{
            templateUrl:'/template/workTable/paramConfigManage/forbiddentimeManage.html',
            controller:"forbiddentimeManage"
        })
    //黑名单导入
        .when('/blackListimport',{
            templateUrl:'/template/workTable/paramConfigManage/blackListimport.html',
            controller:"blackListimport"
        })
        //黑名单列表
    .when('/blackListManage',{
    	templateUrl:'/template/workTable/paramConfigManage/blackListManage.html',
    	controller:"blackListManage"
    })
    //红名单导入
    .when('/redListimport',{
        templateUrl:'/template/workTable/paramConfigManage/redListimport.html',
        controller:"redListimport"
    })
    //红名单列表
    .when('/redListManage',{
    	templateUrl:'/template/workTable/paramConfigManage/redListManage.html',
    	controller:"redListManage"
    })
    // 路由通道设置 业务类型
    .when('/routeServiceType',{
    	templateUrl:'/template/workTable/paramConfigManage/routeServiceType.html',
    	controller:"routeServiceType"
    })
    // 路由通道设置 通道类型
    .when('/routePassType',{
    	templateUrl:'/template/workTable/paramConfigManage/routePassType.html',
    	controller:"routePassType"
    })
    // 虚拟通道设置
    .when('/virtualChannelSetup',{
    	templateUrl:'/template/workTable/paramConfigManage/virtualChannelSetup.html',
    	controller:"virtualChannelSetup"
    })
    //业务路由
     .when('/businessRouteManage',{
     	templateUrl:'/template/workTable/paramConfigManage/businessRouteManage.html',
     	controller:"businessRouteManage"
     })
        //号段路由管理
        .when('/segmentroutManage',{
            templateUrl:'/template/workTable/paramConfigManage/segmentroutManage.html',
            controller:"segmentroutManage"
        })
    //条件短信
    .when('/conditionSmsManage',{
    	templateUrl:'/template/workTable/paramConfigManage/conditionSmsManage.html',
    	controller:"conditionSmsManage"
    })
    //无效用户
        .when('/invalidUserimport', {
            templateUrl: '/template/workTable/paramConfigManage/invalidUserimport.html',
            controller:"invalidUserimport"
        })
    .when('/invalidUserManage',{
    	templateUrl:'/template/workTable/paramConfigManage/invalidUserManage.html',
    	controller:"invalidUserManage"
    })
    //重复过滤
    .when('/repeatFilterManage',{
    	templateUrl:'/template/workTable/paramConfigManage/repeatFilterManage.html',
    	controller:"repeatFilterManage"
    })
    //敏感词
    .when('/sensitiveWordManage',{
    	templateUrl:'/template/workTable/paramConfigManage/sensitiveWordManage.html',
    	controller:"sensitiveWordManage"
    })
        // 优先级管理
        .when('/priorityManage',{
            templateUrl:'/template/workTable/paramConfigManage/priorityManage.html',
            controller:"priorityManage"
        })
        //优先级管理==》短信优先级分配
        .when('/messagepriorityMent',{
            templateUrl:'/template/workTable/paramConfigManage/messagepriorityMent.html',
            controller:"messagepriorityMent"
        })
    //短信通道
    .when('/smsChannelManage',{
    	templateUrl:'/template/workTable/paramConfigManage/smsChannelManage.html',
    	//controller:"smsChannelManage"
    })

    //短信类型
    .when('/smsTypeManage',{
    	templateUrl:'/template/workTable/paramConfigManage/smsTypeManage.html',
    	controller:"smsTypeManage"
    })
    //专线互联网
    .when('/internetSwitch',{
        templateUrl:'/template/workTable/internetSwitch.html',
    	controller:"internetSwitch"
    })
    //专线互联网
    .when('/smsSystemOnekeySwitch',{
        templateUrl:'/template/workTable/smsSystemOnekeySwitch.html',
    	controller:"smsSystemOnekeySwitch"
    })
//======监控工作台=======//
    //统一监控图
    .when('/unifyMonitor',{
        templateUrl:'/template/monitorTable/unifyMonitor.html',
        controller:"unifyMonitor"
    })
    //统一监控图
    .when('/smunifyMonitor',{
        templateUrl:'/template/monitorTable/smunifyMonitor.html',
        controller:"smunifyMonitor"
    })
    //主机监控
    .when('/hostMonitor',{
        templateUrl:'/template/monitorTable/environment/host/hostMonitor.html',
        controller:"hostMonitor"
    })
    //系统监控
    .when('/systemMonitor',{
        templateUrl:'/template/monitorTable/environment/host/systemMonitor.html',
        controller:"systemMonitor"
    })
    //进程监控
    .when('/processMonitor',{
        templateUrl:'/template/monitorTable/environment/host/processMonitor.html',
        controller:"processMonitor"
    })
    //oracle监控
    .when('/oracleMonitor',{
        templateUrl:'/template/monitorTable/environment/oracleMonitor.html',
        controller:'oracleMonitor'
    })
    //tomcat监控
    .when('/tomcatMonitor',{
        templateUrl:'/template/monitorTable/environment/tomcatMonitor.html',
        controller:'tomcatMonitor'
    })
    // redis监控
    .when('/redisMonitor',{
        templateUrl:'/template/monitorTable/environment/redisMonitor.html',
        controller:"redisMonitor"
    })
    //指标监控配置
        .when('/indexMonitor',{
            templateUrl:'/template/monitorTable/sms/indexMonitor.html',
            controller:"indexMonitor"
        })
    //接入汇总监控
    .when('/joinMonitor',{
        templateUrl:'/template/monitorTable/sms/joinMonitor.html',
        controller:"joinMonitor"
    })
    //业务端监控
    .when('/businessMonitor',{
        templateUrl:'/template/monitorTable/sms/businessMonitor.html',
        controller:"businessMonitor"
    })
    //短信通道监控
    .when('/smsMonitor',{
        templateUrl:'/template/monitorTable/sms/smsMonitor.html',
        controller:"smsMonitor"
    })
    //优先级监控
    .when('/priorityMonitor',{
        templateUrl:'/template/monitorTable/sms/priorityMonitor.html',
        controller:"priorityMonitor"
    })
    //对象管理
    .when('/objManage',{
        templateUrl:'/template/monitorTable/monitorConfig/objManage.html',
        controller:"objManage"
    })
    //子对象管理
    .when('/childObjManage',{
        templateUrl:'/template/monitorTable/monitorConfig/childObjManage.html',
        controller:"childObjManage"
    })
    //属性管理
    .when('/attributeManage',{
        templateUrl:'/template/monitorTable/monitorConfig/attributeManage.html',
        controller:"attributeManage"
    })
    //监控设置管理
    .when('/setupManage',{
        templateUrl:'/template/monitorTable/monitorConfig/setupManage.html',
        controller:"setupManage"
    })
    //预警接收人管理
    .when('/warnPersonManage',{
        templateUrl:'/template/monitorTable/monitorConfig/warnPersonManage.html',
        controller:"warnPersonManage"
    })
    //预警汇总监控
    .when('/warnCollectMonitor',{
        templateUrl:'/template/monitorTable/warn/warnCollectMonitor.html',
        controller:"warnCollectMonitor"
    })
    //预警明细监控
    .when('/warnDetailMonitor',{
        templateUrl:'/template/monitorTable/warn/warnDetailMonitor.html',
        controller:"warnDetailMonitor"
    })
    //业务短信发送量逐级监控 月
    .when('/smsGraduallyMonitor',{
        templateUrl:'/template/monitorTable/smsGraduallyMonitor.html',
        controller:"smsGraduallyMonitor"
    })
    //业务短信发送量逐级监控 日
    .when('/smsGraduallyMonitorDay',{
        templateUrl:'/template/monitorTable/smsGraduallyMonitorDay.html',
        controller:"smsGraduallyMonitorDay"
    })
    //业务短信发送量逐级监控 时
    .when('/smsGraduallyMonitorTime',{
        templateUrl:'/template/monitorTable/smsGraduallyMonitorTime.html',
        controller:"smsGraduallyMonitorTime"
    })
    //业务短信发送量逐级监控 分
    .when('/smsGraduallyMonitorBranch',{
        templateUrl:'/template/monitorTable/smsGraduallyMonitorBranch.html',
        controller:"smsGraduallyMonitorBranch"
    })



//======业务工作台======//
    //发送统计
    .when('/sendStat',{
        templateUrl:'/template/businessTable/sendStat.html',
        controller:"sendStat"
    })
    .when('/reserveStat',{
        templateUrl:'/template/businessTable/reserveStat.html',
        controller:"reserveStat"
    })
    //发送明细
    .when('/sendDetail',{
        templateUrl:'/template/businessTable/sendDetail.html',
        controller:"sendDetail"
    })
    //接收明细
    .when('/recieveDetail',{
        templateUrl:'/template/businessTable/recieveDetail.html',
        controller:"recieveDetail"
    })
    //短信文件发送
    .when('/oprateRecord',{
        templateUrl:'/template/businessTable/oprateRecord.html',
        controller:"oprateRecord"
    })
    //短信导入明细
        .when('/opratedetails', {
            templateUrl: '/template/businessTable/opratedetails.html',
            controller:"opratedetails"
        })
    //单条短信发送
    .when('/sendOprate',{
        templateUrl:'/template/businessTable/sendOprate.html',
        controller:"sendOprate"
    })
    // 短信模板设置
    .when('/smsTemplate',{
        templateUrl:'/template/businessTable/smsTemplate.html',
        controller:"smsTemplate"
    })
    // 短信模板变量设置
    .when('/smsTemplateVar',{
        templateUrl:'/template/businessTable/smsTemplateVar.html',
        controller:"smsTemplateVar"
    })
    //======系统管理======//
    //用户管理
        .when('/userManagement',{
            templateUrl:'/template/systemManagement/userManagement.html',
            controller:"userManagement"
        })

        //角色管理
        .when('/roleManagement',{
            templateUrl:'/template/systemManagement/roleManagement.html',
            controller:"roleManagement"
        })
        //组织管理
        .when('/organizationManagement',{
            templateUrl:'/template/systemManagement/organizationManagement.html',
            controller:"organizationManagement"
        })
        //字典管理
        .when('/wordbookManage',{
            templateUrl:'/template/systemManagement/wordbookManage/wordbookManage.html',
            //controller:"wordbookManage"
        })
        //字典值管理
        .when('/wordbookValueManage',{
            templateUrl:'/template/systemManagement/wordbookManage/wordbookValueManage.html',
            //controller:"wordbookValueManage"
        })
        //日志管理
        .when('/logManagement',{
            templateUrl:'/template/systemManagement/logManagement.html',
            controller:"logManagement"
        })

//=====运营分析工作平台=====//
    //超长短信统计
    .when('/smsStatistics',{
        templateUrl:'/template/operaAnalTable/longSmsAnalysis/smsStatistics.html',
        controller:"smsStatistics"
    })
    //超长短信明细
    .when('/smsDetails',{
        templateUrl:'/template/operaAnalTable/longSmsAnalysis/smsDetails.html',
        controller:"smsDetails"
    })
    //无效用户统计
    .when('/userStatistics',{
        templateUrl:'/template/operaAnalTable/invalidUserAnalysis/userStatistics.html',
        controller:"userStatistics"
    })
    //无效用户明细
    .when('/userDetails',{
        templateUrl:'/template/operaAnalTable/invalidUserAnalysis/userDetails.html',
        controller:"userDetails"
    })
    //无效号码激活明细
    .when('/numActivationDetails',{
        templateUrl:'/template/operaAnalTable/invalidUserAnalysis/numActivationDetails.html',
        controller:"numActivationDetails"
    })
    //下发流量统计
    .when('/dsTrafficStatistics',{
        templateUrl:'/template/operaAnalTable/trafficAnalusis/dsTrafficStatistics.html',
        controller:"dsTrafficStatistics"
    })
    //下发短信明细
    .when('/dsSmsDetails',{
        templateUrl:'/template/operaAnalTable/trafficAnalusis/dsSmsDetails.html',
        controller:"dsSmsDetails"
    })
     //上行流量统计
    .when('/upTrafficStatistics',{
        templateUrl:'/template/operaAnalTable/trafficAnalusis/upTrafficStatistics.html',
        controller:"upTrafficStatistics"
    })
     //上行短信统计
    .when('/upSmsStatistics',{
        templateUrl:'/template/operaAnalTable/trafficAnalusis/upSmsStatistics.html',
        controller:"upSmsStatistics"
    })
     //结算月表
    .when('/settlementStatementM',{
        templateUrl:'/template/operaAnalTable/settlementStatementM.html',
        controller:"settlementStatementM"
    })
    //短信递交失败分析 业务端系统
    .when('/smsSubmitFail',{
        templateUrl:'/template/operaAnalTable/smsSubmitFail.html',
        controller:"smsSubmitFail"
    })
    //短信递交失败分析 业务端类型
    .when('/smsSubmitFailType',{
        templateUrl:'/template/operaAnalTable/smsSubmitFailType.html',
        controller:"smsSubmitFailType"
    })
    //短信递交失败分析 通道端通道
    .when('/smsSubmitFailPass',{
        templateUrl:'/template/operaAnalTable/smsSubmitFailPass.html',
        controller:"smsSubmitFailPass"
    })
    //短信递交失败分析 通道端类型
    .when('/smsSubmitFailPassType',{
        templateUrl:'/template/operaAnalTable/smsSubmitFailPassType.html',
        controller:"smsSubmitFailPassType"
    })
    // 短信拨测模板
    .when('/smsDialing',{
        templateUrl:'/template/operaAnalTable/smsDialing.html',
        controller:"smsDialing"
    })
    // 短信拨测通道
    .when('/smsDialingPass',{
        templateUrl:'/template/operaAnalTable/smsDialingPass.html',
        controller:"smsDialingPass"
    })
    // 短信拨测号码
    .when('/smsDialingNum',{
        templateUrl:'/template/operaAnalTable/smsDialingNum.html',
        controller:"smsDialingNum"
    })
    // 短信生命周期监控
    .when('/smsLifeCycle',{
        templateUrl:'/template/operaAnalTable/smsLifeCycle.html',
        controller:"smsLifeCycle"
    })
    //结算年报表
    .when('/settlementStatementY',{
        templateUrl:'/template/operaAnalTable/settlementStatementY.html',
        controller:"settlementStatementY"
    })
    // 权限提示
    .when('/forbid',{
        templateUrl:'/template/forbid.html',
        controller: "forbid"
    })
//    .when('/noFind',{
//        templateUrl:'/template/noFind.html',
//        controller:"noFind"
//    })
//    .otherwise({redirectTo:'/forbid'});
}]);